<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include_once($_SERVER['DOCUMENT_ROOT']."/config.php");
include_once($gDOCUMENT_ROOT_SYSTEM.'templates/include/lib.php');
if(stripos($_SERVER['HTTP_USER_AGENT'],'MSIE')!=false&&getIeVersion($_SERVER['HTTP_USER_AGENT'])<9)
{
	header('Content-Type:text/html');
	echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$user_agent['written_language_tag'].'" lang="'.$user_agent['written_language_tag'].'">'."\n";
	echo '<head>'."\n";
    echo '	<meta http-equiv="X-UA-Compatible" content="chrome=1" />'."\n";
    echo '	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'."\n";
}
else
{
	header('Content-Type:application/xhtml+xml');
	echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$user_agent['written_language_tag'].'">'."\n";
	echo '<head>'."\n";
    echo '	<meta http-equiv="X-UA-Compatible" content="chrome=1" />'."\n";
    echo '	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />'."\n";
}
?>
	<title><?php echo $tpl['title'];?></title>
	<link rel="stylesheet" type="text/css" href="<?php echo $gSYSTEM_URL;?>templates/<?php echo $gTEMPLATE;?>/css/<?php echo $gCSS;?>/packed_douban228.css" title="<?php echo $gTEMPLATE;?>" />
	<link rel="stylesheet" type="text/css" href="<?php echo $gSYSTEM_URL;?>templates/<?php echo $gTEMPLATE;?>/css/<?php echo $gCSS;?>/packed__all63.css" title="<?php echo $gTEMPLATE;?>" />
	<link rel="stylesheet" type="text/css" href="<?php echo $gSYSTEM_URL;?>templates/<?php echo $gTEMPLATE;?>/css/<?php echo $gCSS;?>/cse.css" title="<?php echo $gTEMPLATE;?>" />
	<script type="text/javascript" src="<?php echo $gSYSTEM_URL;?>templates/<?php echo $gTEMPLATE;?>/javascript/lib.js">
	</script>
</head>
